package com.ruoyi.system.service.impl;

import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.constant.UserConstants;
import com.ruoyi.common.core.text.Convert;
import com.ruoyi.common.exception.BusinessException;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.security.Md5Utils;
import com.ruoyi.system.domain.*;
import com.ruoyi.system.domain.spider.Route;
import com.ruoyi.system.mapper.*;
import com.ruoyi.system.service.IRouteService;
import com.ruoyi.system.service.ISysConfigService;
import com.ruoyi.system.service.ISysUserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

/**
 * 用户 业务层处理
 *
 * @author ruoyi
 */
@Service
public class RouteServiceImpl implements IRouteService {

    @Autowired
    private RouteMapper routeMapper;

    @Override
    public int insertRoute(Route route) {
        return routeMapper.insertRoute(route);
    }

    @Override
    public List<Route> selectRouteList(Route route) {
        return routeMapper.selectRouteList(route);
    }


}
